const express = require('express')
const cors = require('cors')
const path = require("path");
// 创建服务器
const app = express()
app.use(cors())
app.use(express.urlencoded({ extended: false }))
app.use(express.json())
app.use('/images', express.static(path.join(__dirname, './upload/avatar')));
app.use("/api", require('./src/finance_api'))
app.use("/api", require('./src/resume'))
app.use("/api", require('./src/upload'))

// 调用listen启动服务器
app.listen(8889, () => {
    console.log('Server is running on port 8889')
})
